package com.ruoyi.yipaiju.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.yipaiju.mapper.ForeclosedHouseSigningorderMapper;
import com.ruoyi.yipaiju.domain.ForeclosedHouseSigningorder;
import com.ruoyi.yipaiju.service.IForeclosedHouseSigningorderService;

/**
 * fo_foreclosed_house_signingorderService业务层处理
 * 
 * @author liuwp
 * @date 2023-03-01
 */
@Service
public class ForeclosedHouseSigningorderServiceImpl implements IForeclosedHouseSigningorderService 
{
    @Autowired
    private ForeclosedHouseSigningorderMapper foreclosedHouseSigningorderMapper;

    /**
     * 查询fo_foreclosed_house_signingorder
     * 
     * @param id fo_foreclosed_house_signingorder主键
     * @return fo_foreclosed_house_signingorder
     */
    @Override
    public ForeclosedHouseSigningorder selectForeclosedHouseSigningorderById(Long id)
    {
        return foreclosedHouseSigningorderMapper.selectForeclosedHouseSigningorderById(id);
    }

    /**
     * 查询fo_foreclosed_house_signingorder列表
     * 
     * @param foreclosedHouseSigningorder fo_foreclosed_house_signingorder
     * @return fo_foreclosed_house_signingorder
     */
    @Override
    public List<ForeclosedHouseSigningorder> selectForeclosedHouseSigningorderList(ForeclosedHouseSigningorder foreclosedHouseSigningorder)
    {
        return foreclosedHouseSigningorderMapper.selectForeclosedHouseSigningorderList(foreclosedHouseSigningorder);
    }

    @Override
    public List<ForeclosedHouseSigningorder> selectForeclosedHouseSigningorderList1(ForeclosedHouseSigningorder foreclosedHouseSigningorder)
    {
        return foreclosedHouseSigningorderMapper.selectForeclosedHouseSigningorderList1(foreclosedHouseSigningorder);
    }


    /**
     * 根据业务主键查询一条记录：fo_foreclosed_house_signingorder
     *
     * @param foreclosedHouseSigningorder fo_foreclosed_house_signingorder
     * @return fo_foreclosed_house_signingorder
     */
    @Override
    public ForeclosedHouseSigningorder selectOneForeclosedHouseSigningorder(ForeclosedHouseSigningorder foreclosedHouseSigningorder)
    {
        return foreclosedHouseSigningorderMapper.selectOneForeclosedHouseSigningorder(foreclosedHouseSigningorder);
    }

    /**
     * 新增fo_foreclosed_house_signingorder
     * 
     * @param foreclosedHouseSigningorder fo_foreclosed_house_signingorder
     * @return 结果
     */
    @Override
    public int insertForeclosedHouseSigningorder(ForeclosedHouseSigningorder foreclosedHouseSigningorder)
    {
        foreclosedHouseSigningorder.setCreateTime(DateUtils.getNowDate());
        return foreclosedHouseSigningorderMapper.insertForeclosedHouseSigningorder(foreclosedHouseSigningorder);
    }

    /**
     * 修改fo_foreclosed_house_signingorder
     * 
     * @param foreclosedHouseSigningorder fo_foreclosed_house_signingorder
     * @return 结果
     */
    @Override
    public int updateForeclosedHouseSigningorder(ForeclosedHouseSigningorder foreclosedHouseSigningorder)
    {
        foreclosedHouseSigningorder.setUpdateTime(DateUtils.getNowDate());
        return foreclosedHouseSigningorderMapper.updateForeclosedHouseSigningorder(foreclosedHouseSigningorder);
    }

    @Override
    public int updateForeclosedHouseSigningorderCondition(ForeclosedHouseSigningorder foreclosedHouseSigningorder, ForeclosedHouseSigningorder foreclosedHouseSigningorderCondition)
    {
                foreclosedHouseSigningorder.setUpdateTime(DateUtils.getNowDate());
        return foreclosedHouseSigningorderMapper.updateForeclosedHouseSigningorderCondition(foreclosedHouseSigningorder, foreclosedHouseSigningorderCondition);
    }

    /**
     * 批量删除fo_foreclosed_house_signingorder
     * 
     * @param ids 需要删除的fo_foreclosed_house_signingorder主键
     * @return 结果
     */
    @Override
    public int deleteForeclosedHouseSigningorderByIds(Long[] ids)
    {
        return foreclosedHouseSigningorderMapper.deleteForeclosedHouseSigningorderByIds(ids);
    }

    /**
     * 删除fo_foreclosed_house_signingorder信息
     * 
     * @param id fo_foreclosed_house_signingorder主键
     * @return 结果
     */
    @Override
    public int deleteForeclosedHouseSigningorderById(Long id)
    {
        return foreclosedHouseSigningorderMapper.deleteForeclosedHouseSigningorderById(id);
    }

    /**
     * 条件删除fo_foreclosed_house_signingorder
     *
     * @param foreclosedHouseSigningorder fo_foreclosed_house_signingorder
     * @return 结果
     */
    @Override
    public int deleteForeclosedHouseSigningorderByCondition(ForeclosedHouseSigningorder foreclosedHouseSigningorder)
    {
        return foreclosedHouseSigningorderMapper.deleteForeclosedHouseSigningorderByCondition(foreclosedHouseSigningorder);
    }

}
